package org.spring.springboot.service.impl;

import org.spring.springboot.domain.City;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;

//@Service
public class CityService2 {
//    @Autowired
//    RestTemplate restTemplate;
//
//    public City findCity(String city) {
//        return restTemplate.getForObject("http://service-ribbon/api/city?cityName="+city,City.class);
//    }
}
